package remote.service

import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query
import remote.domain.Coffee
import remote.domain.Ok

interface CoffeeService {

    @GET("/api/data")
    fun ok(): Call<Ok>

    @POST(value = "/api/data/query")
    fun query(@Query("id") id: Long): Call<List<Coffee>>
}